import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class vidas here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class vidas extends ryu
{
    /**
     * Act - do whatever the vidas wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public int vi = 3;
    public void act() 
    {
      ponVidas(vi);  
    }    
    
    public void baja()
    {
        vi--;
    }
    
    public void ponVidas(int vid)
     {
    
         
         switch(vi)
         {
          case 1:
              setImage("Vida.png");
                              break;
          case 2:
              setImage("Vida.png");
                              break;
          case 3:                
            setImage("Vida.png");
                              break;
         }  
     }
    
    public int regresa()
    {
        return vi;
    }
}
